import React, {Component}  from 'react';
// import BScroll from '@better-scroll/core'
// 状态
export default class Interests extends Component{

  state = {
    list:[]
  }

  componentDidMount() {
    this.setState({
      list: [{'id':'01','name': '游戏'},{'id':'02','name': '篮球'},{'id':'03','name': '动漫'}]
    });
  }

  render() {
    return (
      <div>
          <ul>
            {this.state.list.map((item) => (
              <li key={item.id}>{item.name}</li>
            ))}
          </ul>
      </div>
    );
  }

  
}


